<?php 
class ProfileLeft extends CWidget{

	public function run(){
		$model = Members::model()->findByPk($_GET['id']);
		$event = Events::model()->findAllByAttributes(array('member_id'=>$_GET['id']));
        $order = Orders::model()->findAllByAttributes(array('member_id'=>Yii::app()->user->id));
		$this->render('profileLeft',array(
            'model'=>$model,
            'event'=>$event,
            'order'=>$order
        ));
	}
}

 ?>